package com.wlh.demo01;

/**
 * @author WuLiangHang
 */
public class MyThread extends Thread {

    public MyThread(String name) {
        super(name);
    }

    @Override
    public void run() {
        //自行定义 该线程对象需要完成的任务
        for (int i = 0; i < 10; i++) {
            System.out.println(getName() + "：正在执行！" + i);
        }
    }
}
